#ifndef BATTLEFIELD_HPP
#define BATTLEFIELD_HPP

#include <vector>

#include "Singleton.hpp"
#include "Missile.hpp"

//Singleton? Yes

class BattleField : public Singleton<BattleField>
{
	public:
		void update(float dt);
		void show(sf::RenderTarget& wdw) const;

		void add(const Missile& m);

	private:
		std::vector<Missile> m_proj;

        // for the Singleton
        friend BattleField* Singleton<BattleField>::get();
        friend void Singleton<BattleField>::destroy();
		BattleField();
		~BattleField();
};

typedef Singleton<BattleField> BF;

#endif
